<template>
	<page-body>
		<view class="page">
			<view class="flex align-stretch benben-position-layout flex platformAnnouncement_flex_0_higd"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex align-center justify-between flex-sub platformAnnouncement_fd0_0_higd'>
					<view class='flex align-center platformAnnouncement_fd0_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  platformAnnouncement_fd0_0_c0_c0_higd'>&#xE794;</text>
					</view>
					<view class='flex align-center'>
						<text class='platformAnnouncement_fd0_0_c1_c0_higd'>{{$t('平台消息')}}</text>
					</view>
					<view class='flex align-center platformAnnouncement_fd0_0_c0_higd'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---平台消息flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch justify-center benben-flex-layout">
				<template v-for='(item,key0) in dataList'>
					<view class='flex flex-direction flex-wrap align-stretch platformAnnouncement_fd1_0_higd'
						:key='key0' @tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pages/xtxx/newDetail/newDetail?id=${item.aid}`">
						<view class="flex align-center ">
							<image :src="item.thumb" class="img" mode=""></image>
							<text class='platformAnnouncement_fd1_0_c0_higd'>{{item.title}}</text>
						</view>
						<text class='platformAnnouncement_fd1_0_c1_higd'>{{item.synopsis}}</text>
						<image class='platformAnnouncement_fd1_0_c2_higd' mode="aspectFill" :src='item.img_url'
							v-if="item.img_url!=''"></image>
						<view class='flex flex-wrap align-center platformAnnouncement_fd1_0_c3_higd'>
							<text class='platformAnnouncement_fd1_0_c3_c0_higd'>{{item.create_time}}</text>
						</view>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---平台消息flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"dataList": []
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			this.getListFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			// //系统文章-获取平台公告列表
			// async getListFunc() {
			// 	//请求方法
			// 	//数据验证

			// 	let datadataList = await this.$api.get(global.apiUrls.post67403193ed6fc, {

			// 	});

			// 	if (datadataList.data.code != 1) {
			// 		this.$message.info(datadataList.data.msg);
			// 		return
			// 	}
			// 	let infodataList = datadataList.data.data;
			// 	this.dataList = infodataList.data

			// }
			//系统文章-获取平台公告列表
			getListFunc() {
			    this.minixPagingListsApi = global.apiUrls.post67403193ed6fc;
			    this.pageingListApiMethod = 'get';
			    this.allowOnloadGetList = false;
			    this.pagingListPostDataContent = {}
			    this.listData = [];
			    this.dataList = this.listData;
			    this.pagingListToggle();
			
			},
			pagingListPostData() {
			    return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;

		.img {
			width: 44rpx;
			height: 44rpx;
			border-radius: 16rpx;
			margin-right: 10rpx;
		}

		.platformAnnouncement_fd1_0_higd {
			margin: 24rpx 32rpx 0rpx 32rpx;
			padding: 24rpx 24rpx 24rpx 24rpx;
			background: #fff;
			background-size: 100% auto !important;
			border-radius: 16rpx 16rpx 16rpx 16rpx;

			.platformAnnouncement_fd1_0_c0_higd {
				width: 90%;
				line-height: 36rpx;
				font-size: 32rpx;
				font-weight: 500;
				color: #333333;
				-webkit-line-clamp: 1;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
			}

			.platformAnnouncement_fd1_0_c1_higd {
				
				margin: 24rpx 0rpx 0rpx 0rpx;
				line-height: 46rpx;
				font-size: 28rpx;
				font-weight: 400;
				color: #666666;
				-webkit-line-clamp: 3;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
			}

			.platformAnnouncement_fd1_0_c2_higd {
				width: 638rpx;
				height: 386rpx;
				border-radius: 16rpx;
				margin: 24rpx 0rpx 0rpx 0rpx;
			}

			.platformAnnouncement_fd1_0_c3_higd {
				padding: 24rpx 0rpx 0rpx 0rpx;
				margin: 24rpx 0rpx 0rpx 0rpx;
				border-top: 1px solid rgba(238, 238, 238, 1);

				.platformAnnouncement_fd1_0_c3_c0_higd {
					color: #999999;
					font-size: 24rpx;
					font-weight: 400;
					line-height: 33rpx;
				}
			}
		}

		.platformAnnouncement_flex_0_higd {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: #fff;
			background-size: 100% auto !important;

			.platformAnnouncement_fd0_0_higd {
				padding: 0rpx 32rpx 0rpx 32rpx;
				line-height: 88rpx;

				.platformAnnouncement_fd0_0_c1_c0_higd {
					font-size: 36rpx;
					font-weight: 500;
					color: #333;
				}
			}
		}

		.platformAnnouncement_fd0_0_c0_higd {
			width: 180rpx;

			.platformAnnouncement_fd0_0_c0_c0_higd {
				font-size: 32rpx;
				font-weight: 500;
				color: #333;
			}
		}
	}
</style>
